package moon.core.inheritance;

import moon.core.Name;
import moon.core.classdef.Property;

/**
 * Rename.
 * 
 * @author <a href="mailto:rmartico@ubu.es">Ra&uacute;l Marticorena</a>
 *
 */
@SuppressWarnings("serial")
public abstract class Rename extends Modifier{

	/**
	 * New name.
	 */
	private Name name;
	
	/**
	 * Constructor.
	 * 
	 * @param property property
	 * @param name name
	 */
	public Rename(Property property, Name name) {
		super(property);
		this.name = name;
	}
	
	/**
	 * Gets the new name.
	 * 
	 * @return name
	 */
	public Name getName(){
		return name;
	}

} // Rename
